package com.yyh.task;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import com.yyh.service.IUsersService;

@Component
@EnableScheduling
public class DingShi {

	@Autowired
	IUsersService iUsersService;
	
	@Scheduled(cron="0 0 18 ? * *")
    public void myTask() {
		iUsersService.dingshi();
        System.out.println("定时签退任务执行了。。。");
    }
}
